package com.ougy.reshop.action;

import java.util.List;

import javax.annotation.Resource;

import org.apache.commons.logging.Log;
import org.apache.log4j.Logger;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.ougy.reshop.model.User;
import com.ougy.reshop.service.ISUser;
import com.ougy.reshop.vo.UserRegisterInfo;

@Component("u")
@Scope("prototype")
public class UserAction extends ActionSupport implements ModelDriven{
	private Logger logger=Logger.getLogger(getClass());
	private ISUser sUser;
	private UserRegisterInfo info=new UserRegisterInfo();
	private User user;
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}

	public UserRegisterInfo getInfo() {
		return info;
	}
	
	public List<User> users;
	
	public List<User> getUsers() {
		return users;
	}

	public void setUsers(List<User> users) {
		this.users = users;
	}

	public void setInfo(UserRegisterInfo info) {
		this.info = info;
	}


	@Override
	public String execute() throws Exception {
		
		return "success";
	}

	public Object getModel() {
		// TODO Auto-generated method stub
		return info;
	}
	
}
